import request from '@/utils/request'
// export function getDepartments() {
//   return request({
//     url: '/company/department'
//   })
// }

// 查询部门列表
export const getDepartmentsAPI = () => request.get('/company/department')

// 获取部门负责人
export const getDepaManagerAPI = () => request.get('/sys/user/simple')

// 新增部门
export const addDepartmentsAPI = data => request.post('/company/department', data)

// 获取-部门详情
export const getDepartmentByIdAPI = id => request.get(`/company/department/${id}`)

// 修改-部门详情
export const updateDepartmentsAPI = data => request.put(`/company/department/${data.id}`, data)

// 删除-部门详情
export const delDepartmentsAPI = id => request.delete(`/company/department/${id}`)
